package com.hos.punchtheclocksystem.service.impl;

import com.hos.punchtheclocksystem.mapper.InfoMapper;
import com.hos.punchtheclocksystem.pojo.DoctorInfo;
import com.hos.punchtheclocksystem.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: ycc
 * @Date: 2021/9/14 9:54
 */
@Service
public class InfoServiceImpl implements InfoService {
    @Autowired
    InfoMapper infoMapper;


    @Override
    public Boolean judgeDoctorExistByDocId(Integer docId) {
        return infoMapper.selectDoctorByDocId(docId) != null;
    }


    public DoctorInfo getDoctorInfoByDocId(Integer docId){
        return infoMapper.selectDoctorByDocId(docId);
    }



}
